@include('Api.common.header')
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">{{\App\Http\Controllers\PublicController::getHost()}}</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!--     <li class="layui-nav-item"><a href="{:url('Admin/index')}">系统设置</a></li>-->
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    {{session('admin_user')['name']}}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:void(0);" class="dw-security"
                           dw-url="{{ URL::action('Api\AdminController@infoShow')}}" dw-title="基本资料"
                           dw-width="500px" dw-height="350px">基本资料</a></dd>
                    <dd><a href="javascript:void(0);" class="dw-security"
                           dw-url="{{ URL::action('Api\AdminController@securityShow')}}" dw-title="安全设置"
                           dw-width="500px" dw-height="300px">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="{{ URL::action('Api\LoginController@exitLogin')}}">退了</a></li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                {{\App\Http\Controllers\AuthController::show_menu()}}
                {{\App\Http\Controllers\AuthController::develop_menu()}}
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <!-- 内容主体区域 -->
        @yield('content')
    </div>
    <div class="layui-footer">
        <!-- 底部固定区域 -->
    </div>
</div>

@include('Api.common.footer')
